#include "pch.hpp"
#include "Application.hpp"

#include <logger/stream.hpp>
#include <logger/vsstream.hpp>




Application::Application(LPSTR commandLine)
	: WinUi::Application(commandLine)

	, m_provider(boost::make_shared<services::provider>())
{
	// We want the loop to be as fast as possible (don't wait for messages)
	setFastPumping(true);

	//
	// Logging
	//
	m_provider->registerService(boost::make_shared<logger::vsstream>(m_provider));


	// TODO: register more services
}
///////////////////////////////////////////////////////////////////////////////////////////////////




services::provider::ptr Application::provider()
{
	return m_provider;
}
///////////////////////////////////////////////////////////////////////////////////////////////////
